package com.jspgou.cms.entity;

import java.util.ArrayList;
import java.util.List;

import com.jspgou.cms.entity.base.BaseAftersale;



public class Aftersale extends BaseAftersale {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public Aftersale () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Aftersale (java.lang.Long id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public Aftersale (
		java.lang.Long id,
		com.jspgou.core.entity.Website website,
		com.jspgou.cms.entity.AftersaleType type,
		com.jspgou.cms.entity.AftersaleDemand demand,
		com.jspgou.cms.entity.Order order,
		com.jspgou.cms.entity.Store store,
		com.jspgou.cms.entity.ShopMember member,
		double refundmoney,
		java.util.Date applyTime,
		java.lang.Integer status,
		boolean intervene) {

		super (
			id,
			website,
			type,
			demand,
			order,
			store,
			member,
			refundmoney,
			applyTime,
			status,
			intervene);
	}

/*[CONSTRUCTOR MARKER END]*/
	
	public void addToPictures(String fashionPic) {
		List<AftersalePicture> list = getPictures();
		if (list == null) {
			list = new ArrayList<AftersalePicture>();
			setPictures(list);
		}
		AftersalePicture ap= new AftersalePicture();
		ap.setPicturePath(fashionPic);
		list.add(ap);
	}


}